import time
import datetime

print(datetime.datetime.now())

# 获取时间戳
print(time.time())
# time.strptime(str(datetime.datetime.now()),"yyyy MM dd").print()